SPRITE EXIST

This command will return a one if the specified sprite exists, otherwise zero is returned.

  Syntax
Return Integer=SPRITE EXIST(Sprite Number)
  Parameters
Sprite Number
Integer
The sprite number

  Returns

The command will return a one if the specified sprite exists, otherwise zero is returned

  Description

The parameter should be specified using an integer value.

  Example Code
cls
load image "man.bmp",1
sprite 1,100,100,1
wait 1000*8
do
if sprite exist(1) then print "Found a sprite"
loop
end
  See also

SPRITE Commands Menu
Index